//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.rjxy.demo.mapper;

import com.rjxy.demo.pojo.HeroInfo;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface HeroInfoMapper {
    @Select({"SELECT * FROM hero_info"})
    List<HeroInfo> selectAll();

    @Select({"SELECT * FROM hero_info where hid =#{hid}"})
    HeroInfo selectByHid(Integer var1);

    @Insert({"INSERT INTO hero_info VALUES(null,#{hname},#{position},#{difficulty},#{gender},#{backgroundStory})"})
    int insertHero(HeroInfo var1);

    @Update({"UPDATE hero_info set hname=#{hname},position=#{position},difficulty=#{difficulty},gender=#{gender},background_story=#{backgroundStory} where hid = #{hid}"})
    int updateHero(HeroInfo var1);

    @Delete({"DELETE from hero_info  where hid=#{hid}"})
    int deleteHero(Integer var1);
}
